package work.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import work.entity.Recommend;
import work.repository.RecommendRepository;
import work.service.RecommendService;

import java.util.List;

@Service
public class RecommendServiceImpl implements RecommendService {

    @Autowired
    private RecommendRepository recommendRepository;

    @Override
    public int insertRecommend(Recommend recommend) {
        return recommendRepository.insertRecommend(recommend);
    }

    @Override
    public List<Recommend> findRecommend() {
        return recommendRepository.findRecommend();
    }


}
